package com.shadow.demo.data.info.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shadow.demo.data.info.entity.IpInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

@Mapper
@DS("info")
public interface IpInfoMapper extends BaseMapper<IpInfoEntity> {

    Set<String> getAllType();

    Integer clearByType(@Param("type") String type, @Param("keepNum") int keepNum);
}
